﻿@using SplendidCRM.Ext
@using SplendidCRM.Ext.CCBackendService
@using SplendidCRM.Ext.Helpers

@model RetGetPostpaidBalance 

@{
    var formId = Guid.NewGuid();
}

<div id="@formId" class="form-grid">
<div  class="form-header">Result query</div>
<div class="form-section ui-inline-template" data-bind="each: { source: model }">
    @Html.Field(FieldType.Span, "Result", "text:Result ")
    @Html.Field(FieldType.Span, "Outstanding", "text:Outstanding ")
    @Html.Field(FieldType.Span, "CurrentMonthUsage", "text:CurrentMonthUsage ")
    @Html.Field(FieldType.Span, "FreeMinuteOnNet", "text:FreeMinuteOnNet ")
    @Html.Field(FieldType.Span, "FreeMinuteOfNet", "text:FreeMinuteOfNet ")
    @Html.Field(FieldType.Span, "FreeMinuteInternationalCall", "text:FreeMinuteInternationalCall ")
    @Html.Field(FieldType.Span, "FreeGPRSDataValue", "text:FreeGPRSDataValue ")
    @Html.Field(FieldType.Span, "FreeSMSOnNet", "text:FreeSMSOnNet ")
</div>    
</div>
<script type="text/javascript">
$(function () {
    var model = @Html.Raw(Model.Json(true)) ;
    linq.model(model, '#@formId');
});

</script>
